<?php

$email = $_GET["email"];
$password = $_GET["password"];

if (preg_match("/^[A-Za-z0-9\._-]+@[A-Za-z0-9\._-]+\.[A-Za-z]{2,5}$/", $email) && preg_match("/^[A-Za-z0-9]{5,15}+$/", $password)) {
    // TODO avtentikacija + dodajanje v sejo + prevert za kakšn tip uporabnika gre in narest ustrezen redirect
    header("Location: index.php?stran=odobritevPotiView");
    exit();
}

header("Location: index.php");
exit();

?>